﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            font-size: x-large;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p class="style1">
        This website will calculate the sum of tow number</p>
    <p>
        Input first number here:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_firstNumber" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:RangeValidator ID="RangeValidator1" runat="server" BackColor="#FF66FF" 
            ControlToValidate="tb_firstNumber" 
            ErrorMessage="The type should be DOUBLE and the range should between -10000 and 10000" 
            MaximumValue="10000" MinimumValue="-10000" Type="Double"></asp:RangeValidator>
    </p>
    <p>
        input second number here:&nbsp;
        <asp:TextBox ID="tb_secondNumber" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:RangeValidator ID="RangeValidator2" runat="server" BackColor="#FF66FF" 
            ControlToValidate="tb_secondNumber" 
            ErrorMessage="The type should be DOUBLE and the range should between -10000 and 10000" 
            MaximumValue="10000" MinimumValue="-10000" Type="Double"></asp:RangeValidator>
        <br />
    </p>
    <p>
        <asp:Button ID="btn_result" runat="server" 
            Text="Press here to get the result" />
    </p>
    <p>
        You will see the result here:&nbsp;
        <asp:Label ID="lb_result" runat="server" BackColor="Yellow"></asp:Label>
    </p>
</asp:Content>
